import http from '@/common/http.js'

export default {
	// 我的包车订单
	drivermyCharteredOrder: (data) => {
		return http.get({
			url: 'driver/myCharteredOrder',
			data
		})
	},
	// 我的租车订单
	drivermyCarRentalOrder: (data) => {
		return http.get({
			url: 'driver/myCarRentalOrder',
			data
		})
	},
	// 确认订单
	driverddqr: (data) => {
		return http.post({
			url: 'driver/ddqr',
			data
		})
	},
	// 订单详情
	orderdetail: (data) => {
		return http.get({
			url: 'order/detail',
			data
		})
	},
	// 车主取消包车订单
	driverqxbc: (data) => {
		return http.post({
			url: 'driver/qxbc',
			data
		})
	},
	// 车主取消租车订单
	driverqxzc: (data) => {
		return http.post({
			url: 'driver/qxzc',
			data
		})
	},
	// 获取店铺分类
	shopCategory: (data) => {
		return http.get({
			url: 'shop/category',
			data
		})
	},
}
